package cn.wsalix.biz.service;

import java.util.List;
import java.util.Observer;

import cn.anlaser.service.CommonService;
import cn.wsalix.biz.entity.Advertise;
import cn.wsalix.biz.entity.Category;
import cn.wsalix.biz.form.AdvertiseForm;
import cn.wsalix.biz.repository.AdvertiseRepository;
import cn.wsalix.shop.entity.Shop;

public interface AdvertiseService extends CommonService<AdvertiseForm,AdvertiseRepository,Advertise>,Observer{
	Advertise findByCode(String code);

	List<Advertise> findsByCode(String code);
	
	public Advertise getNew(AdvertiseForm form);

	void addCat(Long adId,Category category);
	
	public void delCat(Long adId, Long catId);

	List<Advertise> findByUnShopId(Long shopId, Long userId);
}
